<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@include file="/WEB-INF/jsp/include/tags.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>advertising - write</title>
	<link rel="stylesheet" type="text/css" href="/css/style.css"/>
	<script type="text/javascript">
	<!--
		function goList() {
			var f = document.advertisingCriteriaForm;
			f.submit();
		}
	//-->
	</script>
</head>
<body>
	
	<p><a href="/">home</a></p>
		
	<h1>Advertising - edit</h1>
	
	<form:form commandName="advertisingCriteria" id="advertisingCriteriaForm" name="advertisingCriteriaForm" action="/advertising.do" method="get">
	<input type="hidden" name="mode"/>
	<form:hidden path="advertisingId"/>
	<form:hidden path="paging.currentPage"/>
	</form:form>

	<form:form commandName="advertising" name="advertisingForm" action="/advertisingEdit.do">
	<input type="hidden" name="mode" value="edit"/>
	<form:hidden path="advertisingId"/>
	<table width="800">
		<colgroup width="800">
			<col width="100"/>
			<col width="*"/>
		</colgroup>
		<tr>
			<th>advertisingId</th>
			<td>
				<c:out value="${advertising.advertisingId}"/>
			</td>
		</tr>
		<tr>
			<th>adspaceId</th>
			<td>
				<form:input path="adspaceId"/>
				<form:errors path="adspaceId" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>siteId</th>
			<td>
				<form:input path="siteId"/>
				<form:errors path="siteId" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>adName</th>
			<td>
				<form:input path="adName"/>
				<form:errors path="adName" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>category</th>
			<td>
				<form:input path="category"/>
				<form:errors path="category" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>adCode</th>
			<td>
				<form:input path="adCode"/>
				<form:errors path="adCode" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>adWeight</th>
			<td>
				<form:input path="adWeight"/>
				<form:errors path="adWeight" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>displayCount</th>
			<td>
				<form:input path="displayCount"/>
				<form:errors path="displayCount" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>clickCount</th>
			<td>
				<form:input path="clickCount"/>
				<form:errors path="clickCount" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>startTime</th>
			<td>
				<form:input path="startTime"/>
				<form:errors path="startTime" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>endTime</th>
			<td>
				<form:input path="endTime"/>
				<form:errors path="endTime" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>isEnabled</th>
			<td>
				<form:input path="isEnabled"/>
				<form:errors path="isEnabled" cssClass="errorMessage"/>
			</td>
		</tr>
	</table>
	<input type="submit" value="edit"/>
	</form:form>

	<a href="javascript:goList();">list</a>

</body>
</html>
